package com.asg.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.asg.entity.ClassTable;
import com.asg.service.ClassTableService;

@Controller
public class ClassTableController {
	@Autowired
	private ClassTableService classTableService;
	
	@RequestMapping("/getClazz")
	@ResponseBody
	public Object getClazz() {
		List<ClassTable> ClassList =  classTableService.getAll();
		return ClassList;
	}

}
